<?php

/**
 * modelosxingresos form base class.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BasemodelosxingresosForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                 => new sfWidgetFormInputHidden(),
      'modelos_id'         => new sfWidgetFormPropelChoice(array('model' => 'modelos', 'add_empty' => true)),
      'imei'               => new sfWidgetFormInput(),
      'ordenesservicio_id' => new sfWidgetFormPropelChoice(array('model' => 'ordenesservicio', 'add_empty' => true)),
      'sf_guard_user'      => new sfWidgetFormPropelChoice(array('model' => 'sfGuardUser', 'add_empty' => true)),
      'fechareparacion'    => new sfWidgetFormDateTime(),
      'fechaentrega'       => new sfWidgetFormDateTime(),
      'reparado'           => new sfWidgetFormInputCheckbox(),
      'garantia'           => new sfWidgetFormInputCheckbox(),
      'entregado'          => new sfWidgetFormInputCheckbox(),
      'entregado_a'        => new sfWidgetFormInput(),
      'periodo_garantia'   => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'                 => new sfValidatorPropelChoice(array('model' => 'modelosxingresos', 'column' => 'id', 'required' => false)),
      'modelos_id'         => new sfValidatorPropelChoice(array('model' => 'modelos', 'column' => 'id', 'required' => false)),
      'imei'               => new sfValidatorString(array('max_length' => 15)),
      'ordenesservicio_id' => new sfValidatorPropelChoice(array('model' => 'ordenesservicio', 'column' => 'id', 'required' => false)),
      'sf_guard_user'      => new sfValidatorPropelChoice(array('model' => 'sfGuardUser', 'column' => 'id', 'required' => false)),
      'fechareparacion'    => new sfValidatorDateTime(array('required' => false)),
      'fechaentrega'       => new sfValidatorDateTime(array('required' => false)),
      'reparado'           => new sfValidatorBoolean(array('required' => false)),
      'garantia'           => new sfValidatorBoolean(array('required' => false)),
      'entregado'          => new sfValidatorBoolean(array('required' => false)),
      'entregado_a'        => new sfValidatorString(array('max_length' => 100, 'required' => false)),
      'periodo_garantia'   => new sfValidatorInteger(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('modelosxingresos[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'modelosxingresos';
  }


}
